package com.jiemengshi.server.mapper;

import com.jiemengshi.server.model.Feedback;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
@Transactional
public interface FeedbackMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Feedback record);

    int insertSelective(Feedback record);

    Feedback selectByPrimaryKey(Integer id);

    List<Feedback> selectByUserId(int userId);

    List<Feedback> selectByFeedbackId(int feedbackId);

    List<Feedback> listFeedback(@Param("start") int start, @Param("limit") int limit);

    int countFeedback();
    
    int updateByPrimaryKeySelective(Feedback record);

    int updateByPrimaryKey(Feedback record);
}